package com.jiexin.param;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @Author: Jay_Liu
 * @Description:
 * @Date: Created in 16:59 2018/5/19 0019
 * @Modified By:
 */
@Getter
@Setter
@ToString
public class WorkFlowStatusParam {

    private Integer id;

    @NotBlank(message = "关卡名称不可以为空")
    @Length(min = 0, max = 15, message = "工作流备注长度需要在15个字符以内")
    private String name;

    @NotNull(message = "展示顺序不可以为空")
    private Integer seq;

    @NotNull(message = "必须指定工作流")
    private Integer workFlowId;

    @NotNull(message = "必须指定关卡的状态")
    @Min(value = 0, message = "关卡状态不合法")
    @Max(value = 1, message = "关卡状态不合法")
    private Integer status;

    @Length(min = 0, max = 200, message = "权限点备注长度需要在200个字符以内")
    private String remark;

}
